<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\AuthItem */

$this->title = '查看授权';
$this->params['breadcrumbs'][] = ['label' => 'Auth Items', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="auth-item-view">

    <div class="panel">
		<div class="panel-heading">
            <?= Html::encode($this->title) ?>          
            <div class="pull-right">                
                <?= Html::a('修改', ['update', 'id' => $model->name], ['class' => 'btn btn-sm btn-cyan']) ?>
                <?= Html::a('删除', ['delete', 'id' => $model->name], [
                    'class' => 'btn btn-sm btn-danger',
                    'data' => [
                        'confirm' => 'Are you sure you want to delete this item?',
                        'method' => 'post',
                    ],
                ]) ?>
            </div>
		</div>
        <div class="panel-body">
            <?= DetailView::widget([
                'model' => $model,
                'attributes' => [
                    [
                        'attribute' => 'name',
                        'label' => '授权'
                    ],
                    'description:ntext',
                    'rule_name',
                    'data',
                    'created_at:datetime',
                    'updated_at:datetime',
                ],
            ]) ?>
        </div>
    </div>

</div>
